package cn.project.lemontree.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class Parent  implements Serializable {
    @ApiModelProperty(value = "家长Id",example="1")
    @TableId(type = IdType.AUTO)
    private Integer parentId;
    @ApiModelProperty(value = "家长姓名")
    private String parentName;
    @ApiModelProperty(value = "家长身份")
    private String parentStatus;
    @ApiModelProperty(value = "会员身份")
    private String membership;
    @ApiModelProperty(value = "电话号码")
    private String telephone;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(hidden = true)
    @TableLogic
    private Integer deleted;

    public Parent(Integer parentId){
        this.parentId = parentId;
    }
}
